package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 店铺带货任务表
 * </p>
 *
 * @author
 * @since 2023-06-15
 */
@Getter
@Setter
@TableName("h2_shop_sell_task")
@Schema(name = "ShopSellTask", description = "店铺带货任务表")
public class ShopSellTask implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "带货任务编号")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "店铺编号")
    private Long shopBaseId;

    @Schema(description = "店铺名")
    private String shopName;

    @Schema(description = "任务名称（不超过36字符）")
    private String taskName;

    @Schema(description = "任务目标（不超过128字符）")
    private String taskGoal;

    @Schema(description = "任务描述（不超过128字符）")
    private String taskInfo;

    @Schema(description = "任务收益（平台结算）")
    private String taskBenefitType;

    @Schema(description = "任务时长（平台设定)")
    private String taskDuration;

    @Schema(description = "任务开始时间（当前时间之后）")
    private LocalDate taskStartTime;

    @Schema(description = "任务结束时间（开始时间之后）")
    private LocalDate taskEndTime;

    @Schema(description = "所需信誉值(不小于0)")
    private Integer needReputation;

    @Schema(description = "带货商品名集合（用 ; 隔开）")
    private String taskProductName;

    @Schema(description = "状态（0：审核中   1：未通过审核  2：进行中   5:已结束 ）")
    private Byte status;

    @Schema(description = "审批状态（0：审核中 1. 审核未通过   2:审核通过")
    private Byte passFlag;

    @Schema(description = "是否被删除 0 未删除 1 已删除")
    @TableLogic
    private Byte deleted;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}
